{if $showhtml != "no"}
	
	{include file="header.tpl" jsload="ajax" jsload1="tinymce"}
	
	{include file="tabsmenue-admin.tpl" companytab="active"}

	<div id="content-left">
		
		<div id="content-left-in">
			
			<div class="projects">
				
				<h1 class="second">
					<img src="./templates/planeacion_desarrollo/images/symbols/companies_30.png" alt="{#company#}" />
					{$company.name}
				</h1>
				
{/if}

<div class="block_in_wrapper">

	<h2>{#editcompany#}</h2>

	<form class="main" method="post" action="managecompany.php?action=edit" enctype="multipart/form-data" {literal}onsubmit="return validateCompleteForm(this);"{/literal} >
		
		<input type="hidden" name="company_id" value="{$company.ID}" />
		
		<fieldset>
			
			<div class="row">
				<label for="parent_id">{#company_parent#}:</label>
				<select name="parent_id" id="parent_id">
					<option value="0">{#none#}</option>
					{foreach key=key item=company_select from=$companies_select}
					<option value="{$company_select.ID}" {if $company_select.ID == $company.parent_id}selected="selected"{/if}>{$company_select.hierarchy}</option>
					{/foreach}
				</select>
			</div>
			
			<div class="row">
				<label for="name">{#name#}: <span style="color:#f00;">*</span></label>
				<input type="text" class="text" name="name" id="name" required="1" realname="{#name#}" value="{$company.name}" />
			</div>
			
			<div class="row">
				<label for="email">{#email#}:</label>
				<input type="text" class="text" name="email" id="email" realname="{#email#}" value="{$company.email}" />
			</div>
			
			<div class="row">
				<label for="phone">{#phone#}:</label>
				<input type="text" class="text" name="phone" id="phone" realname="{#phone#}" value="{$company.phone}" />
			</div>
			
			<div class="row">
				<label for="address_1">{#address#} 1:</label>
				<input type="text" class="text" name="address_1" id="address_1" realname="{#address#}1" value="{$company.address1}" />
			</div>
			
			<div class="row">
				<label for="address_2">{#address#} 2:</label>
				<input type="text" class="text" name="address_2" id="address_2" realname="{#address#}2" value="{$company.address2}" />
			</div>
			
			<div class="row">
				<label for="state">{#state#}:</label>
				<input type="text" class="text" name="state" id="state" realname="{#state#}" value="{$company.state}" />
			</div>
			
			<div class="row">
				<label for="country">{#country#}:</label>
				<input type="text" class="text" name="country" id="country" realname="{#country#}" value="{$company.country}" />
			</div>
			
			<div class="row">
				<label for="logo">{#logo#}:</label>
				<input type="file" name="logo" id="logo" />
			</div>
			
			{if $company.logo}
			<div class="row">
				<label>Logo actual:</label>
				<span style="display:block;">{#changelogo#}</span>
				<img src="files/standard/companies_logos/{$company.logo}" alt="Logotipo" title="Logotipo" />
			</div>
			{/if}
			
			<div class="row-butn-bottom">
				<label>&nbsp;</label>
				<button type="submit" onfocus="this.blur();">{#edit#}</button>
				<button type="button" onclick="javascript:window.location='admin.php?action=companies';">{#cancel#}</button>
			</div>
			
		</fieldset>
		
	</form>

</div> {*block_in_wrapper end*}



{if $showhtml != "no"}
	<div class="content-spacer"></div>
	</div> {*Projects END*}
	</div> {*content-left-in END*}
	</div> {*content-left END*}

	{include file="sidebar-a.tpl"}
	{include file="footer.tpl"}
{/if}